package com.example.memurbac_service.servicelmp;

import com.example.memurbac_service.dao.UlogMapper;
import com.example.memurbac_service.pojo.Ulog;
import com.example.memurbac_service.service.UlogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class UlogServicelmp implements UlogService
{
    /** 注入 mybaties mapper 接口*/
    @Autowired
    UlogMapper mapper;



    /**
     * 添加操作日志
     */
   public int addlog(String username, String dosomething){
        return mapper.addlog(username, dosomething);
   }



    /**
     * 查询操作日志
     */
    @Override
    public List<Ulog> SelectJourals(Date start, Date end) {
        return mapper.SelectJourals(start,end);
    }


}
